<template>
  <div>
    <div class="dashboard-container">
      

      <div class="big-back-box">
        <div class="top" style="margin-bottom: 20px">订单详情</div>
        <!-- 卡片 -->
        <div style="width: 600px; margin: 0 auto">
          <el-form ref="form" :model="form" label-width="100px">

            <el-form-item label="订单ID">
              <el-input v-model="form.id" :disabled="true"></el-input>
            </el-form-item>
            <el-form-item label="订单类型">
              <el-input v-model="form.type" :disabled="true"></el-input>
            </el-form-item>

            <el-form-item label="创建时间">
              <el-input v-model="form.createTime" :disabled="true"></el-input>
            </el-form-item>

            <el-form-item label="完成时间">
              <el-input v-model="form.finishTime" :disabled="true"></el-input>
            </el-form-item>

            <el-form-item label="状态时间">
              <el-input v-model="form.stateTime" :disabled="true"></el-input>
            </el-form-item>

            <el-form-item label="金额">
              <el-input v-model="form.money" :disabled="true"></el-input>
            </el-form-item>
  
            <el-form-item label="状态">
              <el-input v-model="form.state" :disabled="true"></el-input>
            </el-form-item>

            <el-form-item label="是否付款">
              <el-input v-model="form.paymentOrNot" :disabled="true"></el-input>
            </el-form-item>

            <el-form-item label="异常情况">
              <el-input v-model="form.exceptionIdentification" :disabled="true"></el-input>
            </el-form-item>
            
            <el-form-item>
              <router-link to="/customerCenter/customerOrder/orderList">
                <el-button style="margin-left: 20px">返回</el-button>
              </router-link>
              
            </el-form-item>
          </el-form>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

import {getOrder} from "@/api/order"
export default {
  mounted(){
   //显示订单详情
   //this.$route.query.row
   console.log(this.$route.query.id);
    getOrder(this.$route.query.id).then(res=>{
      this.form=res.data.order;
    })
  },
  data() {
    return {
      size: "",
      form: {},
    };
  },
  methods: {
  },
};
</script>

<style lang="scss" scoped>
// 页头LOGO
.top {
  height: 50px;
  font-size: 30px;
  text-align: center;
  line-height: 50px;
}

// 大盒子
.big-back-box {
  width: 1080px;
  margin: 0 auto;
}

// 原框架自带
.dashboard {
  &-container {
    margin-top: 30px;
    // margin-left: 30px;
    // margin-right: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

// 页脚
.footer {
  height: 300px;
  background-color: blue;
}
.footer-back-box {
  width: 1080px;
  margin-left: 45px;
}
.footer-title {
  height: 30px;
  line-height: 40px;
  padding-left: 10px;
}
.footer-link-card {
  width: 200px;
  background-color: orange;
  margin-left: 10px;
}

// 模板-卡片
.text {
  font-size: 14px;
}
.item {
  padding: 18px 0;
}
.box-card {
  width: 480px;
}
</style>